package com.xtaller.sdboot.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @version V1.0
 * @author: Taller
 * @date: 2019-08-09
 * @Description: 密码修改
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "密码修改-VO")
public class PasswordVO {
    @ApiModelProperty(value = "旧密码")
    @NotBlank(message = "密码不能为空")
    @Length(min = 40, max = 40, message = "密码字符长度有误")
    private String oldPwd;

    @ApiModelProperty(value = "新密码")
    @NotBlank(message = "密码不能为空")
    @Length(min = 40, max = 40, message = "密码字符长度有误")
    private String newPwd;

}
